<!--公司对账|choose:选中,detail:查询,acc:对账单,express:快递单,create:生成对账单-->
<div style="padding: 10px;">
	<input type="hidden" class="is_first" value="1">
	{if $Think.get.company_id}
	<form class="layui-form" action="" method="get">
		<div class="layui-form-item">
				<div class="layui-input-inline">
					<select class="company_id" name="company_id" lay-search>
							
					</select>
				</div>
				<div class="layui-input-inline">
					<input type="number" class="layui-input" name="year" placeholder="请输入年份" value="{$Think.get.year?:2018}">
				</div>
				<div class="layui-input-inline">
					<select name="check_state" class="check_state" style="height: 33px;">
						<option>全部</option>
						
					</select>
				</div>
			<div class="am-u-sm-5">
				<button  class="layui-btn layui-btn-normal">查询<i class="am-icon-search"></i></button>
			</div>
		</div>
	</form>
	{else/}
	<form class="am-form-inline tpl-form-border-form ">
		<div class="layui-form-item">
				<div class="layui-input-inline">
					<input type="text" class="layui-input" name="company_name" placeholder="公司名称" value="{$Think.get.company_name}">
				</div>
			
			
			<div class="layui-input-inline">
				<button  class="layui-btn  layui-btn-normal">查询<i class="am-icon-search"></i></button>
			</div>
		</div>
	</form>
	
	{/if}
	<div  style="margin: 20px 0;">
		<table class="layui-hide" id="acc" lay-filter="acc">

		</table>
		{if $Think.get.company_id}
		{else/}
		<div id="page"></div>
		{/if}
	</div>
	{if $Think.get.company_id}
	<script type="text/html" id="operation">
		{{# if(d.check_state){ }}
		<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="acc">对账单</a>
		<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="express">快递单</a>
		{{#  }else{ }}
		<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="create">生成对账单</a>
		{{# } }}
		
	</script>
	{else/}
	<script type="text/html" id="operation">
		<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="choose">选中</a>
	</script>
{/if}
</div>
<script src="{$static_dir}/assets/js/new_pages.js"></script>